﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Easy.Model
{
    public enum AccessRight
    {
        READ = 1,
        WRITE = 2,
        CREATE = 32,
        DELETE = 65536,
        ASSIGN = 524288
    }
    public enum DepthMask
    {
        None = 0,
        User = 1,
        BusinessUnit = 2,
        BusinessUnitAndChildren = 4,
        Organization = 8
    }
    public class Privilege
    {
        public DepthMask READ { get; set; }
        public DepthMask WRITE { get; set; }
        public DepthMask CREATE { get; set; }
        public DepthMask DELETE { get; set; }
        public DepthMask ASSIGN { get; set; }
    }
}
